﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Exceptions
{
    public class CommonException : Exception
    {
        public string ErrorNo { get; set; } // 业务异常编号
        public string ErrorInfo { get; set; }// 业务异常信息

        public dynamic ErrorDetails { get; set; }// 业务异常详情（异常堆栈）

        public CommonException(string errorNo, string errorInfo)
        {
            ErrorNo = errorNo;
            ErrorInfo = errorInfo;
        }

        public CommonException()
        {

        }
    }
}
